import axios from "axios"
//获取评论
export const getComment = () =>axios.get('http://chst.vip:1902/students/getstulist')

//删除评论
export const delComment = delId =>axios.get('http://chst.vip:1902/students/del',{
    params: {
        id:delId
    },
    headers: {
        "content-type": "application/json"
    }
})

//添加评论
export const addComment = (name,content) =>axios.post('http://chst.vip:1902/students/addlist',{
    name,
    content
},{
    headers:{
        "content-type": "application/json" 
    }
})